package vn.edu.nuce.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import vn.edu.nuce.dao.PhongMayDao;
import vn.edu.nuce.model.PhongMay;
@Transactional(readOnly=true)
public class PhongMayServiceImpl implements PhongMayService{
	PhongMayDao phongMayDao;

	public PhongMayDao getPhongMayDao() {
		return phongMayDao;
	}

	public void setPhongMayDao(PhongMayDao phongMayDao) {
		this.phongMayDao = phongMayDao;
	}

	public List<PhongMay> getPhongMayList() {
		return getPhongMayDao().getPhongMayList();
	}

	public PhongMay getById(String id) {
		return getPhongMayDao().getById(id);
	}

	public List<PhongMay> getPhongMayHoatDong() {
		return getPhongMayDao().getPhongMayHoatDong();
	}

	@Transactional(readOnly=false)
	public void update(PhongMay phongMay) {
		getPhongMayDao().update(phongMay);
		
	}

}
